package com.yxlcommon.common.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: yxl
 * @since: 2021-11-26
 **/
@Data
public class WorksInfo implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long workId;

    private String workName;

    private Integer categoryId;

    private String username;

    private LocalDateTime workDate;

    private String workFilename;

    private String poster;

    private Integer rootCategoryId;

    private Integer workLikesNums;

    private Byte status;

    private Byte workFileType; // 0 = 视频 1 = 图片

    @TableField(exist = false)
    private String userImg;

    @TableField(exist = false)
    private String categoryName;

    @TableField(exist = false)
    private Long userId;

}
